#### Start of system configuration section. ####

srcdir =	@srcdir@
VPATH =		@srcdir@

# Common prefix for machine-independent installed files.
prefix =	@prefix@

# Common prefix for machine-dependent installed files.
exec_prefix =	@exec_prefix@

bindir =	$(exec_prefix)/bin
libdir =	$(exec_prefix)/Sys/libs

INSTALL =	@INSTALL@
INSTALL_DATA =	@INSTALL_DATA@

CC =		@CC@

CFLAGS =	@CFLAGS@
LDFLAGS =	@LDFLAGS@

RANLIB =	@RANLIB@
AR =		ar

#### End system configuration section ####

FLAVOR_CFLAGS =	-m$(CPU) -m$(FPU)
OTHER_CFLAGS =	-fomit-frame-pointer
ALL_CFLAGS =	$(CFLAGS) $(FLAVOR_CFLAGS) $(OTHER_CFLAGS) $(INCS) $(DEFS)

DEFS =		-DIEEE_SINGBAS -DHAVE_ATEXIT
INCS =		-I$(srcdir) -I$(srcdir)/../gnulib -I$(srcdir)/../library -I$(srcdir)/../include
LIB =		libgnu.a
SHELL =		/bin/sh

.c.o:
		$(CC) $(ALL_CFLAGS) -c $< -o $@

SRC =		adddf3.c addsf3.c cmpdf2.c cmpsf2.c divdf3.cdivsf3.c divsi3.c \
		extendsfdf2.c fabs.c fixdfsi.c fixunsdfsi.c floatsidf.c frexp.c \
		ldexp.c modf.c modsi3.c muldf3.c mulsf3.c mulsi3.c negdf2.c \
		negsf2.c subdf3.c subsf3.c truncdfsf2.c udivsi3.c umodsi3.c

OBJ =		adddf3.o addsf3.o cmpdf2.o cmpsf2.o divdf3.o divsf3.o divsi3.o \
		extendsfdf2.o fabs.o fixdfsi.o fixunsdfsi.o floatsidf.o frexp.o \
		ldexp.o modf.o modsi3.o muldf3.o mulsf3.o mulsi3.o negdf2.o \
		negsf2.o subdf3.o subsf3.o truncdfsf2.o udivsi3.o umodsi3.o

$(LIB):		$(OBJ)
		rm -f $@
		$(AR) rv $@ $(OBJ)
		$(RANLIB) $@

clean:
		rm -f *!

clobber:	clean
		rm -f $(OBJ) $(LIB)
